﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SelectCustomer.ascx.cs" Inherits="CanDoo.Oil.WebApp.UserControls.SelectCustomer" %>
<f:Panel ID="Panel7" runat="server" BodyPadding="5px" Width="650px" Height="300px" Hidden="true"
    ShowBorder="true" ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
    <Items>
        <f:Form ID="Form2" runat="server" ShowHeader="false"
            ShowBorder="false">
            <Rows>
                <f:FormRow ID="FormRowSearch" runat="server">
                    <Items>
                        <f:TwinTriggerBox ID="SearchKey" runat="server" ShowLabel="false" EmptyText="在名称中搜索"
                            Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="search_Key_Trigger2Click"
                            OnTrigger1Click="search_Key_Trigger1Click">
                        </f:TwinTriggerBox>
                    </Items>
                </f:FormRow>
            </Rows>
        </f:Form>
        <f:Grid ID="SelectCustomerControl_GridList" BoxFlex="1"
            DataIDField="Id" DataTextField="Name" KeepCurrentSelection="true"
            PageSize="10" ShowBorder="true" ShowHeader="false"
            AllowPaging="true" runat="server" EnableCheckBoxSelect="True"
            DataKeyNames="Id,Name" IsDatabasePaging="true" OnPageIndexChange="GridList_PageIndexChange"
            AllowSorting="false" SortField="Code" SortDirection="ASC"
            OnSort="GridList_Sort">
            <PageItems>
                <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                </f:ToolbarSeparator>
                <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                </f:ToolbarText>
                <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
                    runat="server">
                    <f:ListItem Text="10" Value="10" />
                    <f:ListItem Text="20" Value="20" />
                    <f:ListItem Text="50" Value="50" />
                    <f:ListItem Text="100" Value="100" />
                </f:DropDownList>
            </PageItems>
            <Columns>
                <f:RowNumberField />
                <f:BoundField ColumnID="CardNo" DataField="CardNo" HeaderText="卡号" Width="150px" />
                <f:BoundField ColumnID="Name" DataField="Name" HeaderText="姓名" Width="150px" />
                <f:BoundField ColumnID="Sex" DataField="Sex" HeaderText="性别" Width="150px" />
                <f:BoundField ColumnID="MobilePhone" DataField="MobilePhone" HeaderText="手机号" Width="150px" />
                <f:BoundField ColumnID="ImageUrl" DataField="ImageUrl" HeaderText="客户照片" Width="150px" />
                <f:BoundField ColumnID="CardBank" DataField="CardBank" HeaderText="开户行" Width="150px" />
                <f:BoundField ColumnID="CardName" DataField="CardName" HeaderText="户名" Width="150px" />
                <f:BoundField ColumnID="Province" DataField="Province" HeaderText="省" Width="150px" />
                <f:BoundField ColumnID="City" DataField="City" HeaderText="市" Width="150px" />
                <f:BoundField ColumnID="Area" DataField="Area" HeaderText="区" Width="150px" />
                <f:BoundField ColumnID="Street" DataField="Street" HeaderText="街道" Width="150px" />
                <f:BoundField ColumnID="Address" DataField="Address" HeaderText="详细地址" Width="150px" />
                <f:BoundField ColumnID="CustomerType" DataField="CustomerType" HeaderText="客户类别" Width="150px" />
                <f:BoundField ColumnID="CustomerLevel" DataField="CustomerLevel.Name" HeaderText="客户等级" Width="150px" />
                <f:BoundField ColumnID="CardType" DataField="CardType" HeaderText="卡类别" Width="150px" />
                <f:BoundField ColumnID="LimitProduct" DataField="LimitProduct.Name" HeaderText="购买限制" Width="150px" />
                <f:BoundField ColumnID="Balance" DataField="Balance" HeaderText="账户余额" Width="150px" />
                <f:BoundField ColumnID="TotalAmount" DataField="TotalAmount" HeaderText="总充值金额" Width="150px" />
                <f:BoundField ColumnID="OnLinePayMoney" DataField="OnLinePayMoney" HeaderText="在线支付金额" Width="150px" />
                <f:BoundField ColumnID="CostedMoney" DataField="CostedMoney" HeaderText="总消费金额" Width="150px" />
                <f:BoundField ColumnID="CashBackAmount" DataField="CashBackAmount" HeaderText="返现金额" Width="150px" />
                <f:BoundField ColumnID="Integral" DataField="Integral" HeaderText="积分" Width="150px" />
                <f:BoundField ColumnID="ServiceCenter" DataField="ServiceCenter.Name" HeaderText="服务中心" Width="150px" />
                <f:BoundField ColumnID="Parent" DataField="Parent.Name" HeaderText="上级客户(客户)" Width="150px" />
                <f:BoundField ColumnID="IsServiceCenter" DataField="IsServiceCenter" HeaderText="是否服务中心" Width="150px" />
                <f:BoundField ColumnID="ServiceCenterActiver" DataField="ServiceCenterActiver.Name" HeaderText="服务中心激活人" Width="150px" />
                <f:BoundField ColumnID="SevriceCenterActiveTime" DataField="SevriceCenterActiveTime" HeaderText="服务中心激活时间" Width="150px" />
                <f:BoundField ColumnID="IsOnline" DataField="IsOnline" HeaderText="是否在线" Width="150px" />
                <f:BoundField ColumnID="IsLocked" DataField="IsLocked" HeaderText="是否锁定" Width="150px" />
                <f:BoundField ColumnID="StateUpdateTime" DataField="StateUpdateTime" HeaderText="状态更新时间" Width="150px" />
                <f:BoundField ColumnID="Status" DataField="Status" HeaderText="账号状态(激活)" Width="150px" />
                <f:BoundField ColumnID="Activate" DataField="Activate.Name" HeaderText="激活人" Width="150px" />
                <f:BoundField ColumnID="ActivateTime" DataField="ActivateTime" HeaderText="激活时间" Width="150px" />
                <f:BoundField ColumnID="Remark" DataField="Remark" HeaderText="备注" ExpandUnusedSpace="true" />
            </Columns>
        </f:Grid>
    </Items>
</f:Panel>
